package 基础篇.线程通信.同步锁通信;

/**
 * Created by Administrator on 2018/7/28 0028.
 */
public class DrawTest {
    public static void main(String[] args) {
        Account account=new Account("123",0);
        new DrawThread("取钱1号",account,800).start();
        new DrawThread("取钱2号",account,800).start();
        new DrawThread("取钱3号",account,800).start();
        new DepositThread("存钱1号",account,500).start();
        new DepositThread("存钱2号",account,500).start();
        new DepositThread("存钱3号",account,500).start();
    }
}
